import request from '@/utils/request.js'

export function listComments(courseRelationId) {
  return request({
    url: `/course/comment/${courseRelationId}`,
    method: 'GET'
  })
}

export function comment(data) {
  return request({
    url: '/course/comment',
    method: 'POST',
    data:data
  })
}